package com.fuluwa.interfaces.usercenter.facade;

import com.fuluwa.domain.security.model.User;

public class UserFactory {
	private static UserFactory factory = new UserFactory();

	private UserFactory() {
	}

	public static UserFactory getInstace() {
		return factory;
	}
	
	public User createInstace(UserDTO userDTO) {
//		UserAttribute attribute=new UserAttribute(userDTO.getUsername(), userDTO.getEmail());
		
		return new User(userDTO.getUsername(), userDTO.getPassword(), userDTO.getEmail(), userDTO.getRoleList());
	}
}
